package com.example.dzbsh.dao;

import com.example.dzbsh.model.Jiashu;
import com.example.dzbsh.model.JiashuExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface JiashuMapper {

    List<Map<String,Object>> findBydeptId(@Param("deptid")String ppDeptId);

    List<String> selectJiashuIdList();

    List<Map<String,Object>> selectValid();

    List<Map<String, Object>> findByRenyuanid(@Param("renyuanid") String renyuanid);

    List<Map<String, Object>> findByRenyuanidByGuifan(@Param("renyuanid") String renyuanid);

    List<Map<String, Object>> findByDeptIdAndName(@Param("deptid") String ppDeptId,@Param("jiashuname") String ppJiashuname,@Param("startindex") int ppStartIndex, @Param("pagesize") int ppPageSize);

    Object countByDeptIdAndName(@Param("deptid") String ppDeptId,@Param("jiashuname") String ppJiashuname);

    int countByExample(JiashuExample example);

    int deleteByExample(JiashuExample example);

    int deleteByPrimaryKey(String jiashuid);

    int insert(Jiashu record);

    int insertSelective(Jiashu record);

    List<Jiashu> selectByExample(JiashuExample example);

    Jiashu selectByPrimaryKey(String jiashuid);

    int updateByExampleSelective(@Param("record") Jiashu record, @Param("example") JiashuExample example);

    int updateByExample(@Param("record") Jiashu record, @Param("example") JiashuExample example);

    int updateByPrimaryKeySelective(Jiashu record);

    int updateByPrimaryKey(Jiashu record);

    Object getCountByzhuangtai();
}